/**
 * 
 */

	$.ajax({
		url:basePath+'/KGradeAction!selectkGradeList',
		data:{'pageNo':1},
		dataType:'json',
		type:'post',
		success:function(data)
		{
			 $("#Gtbody").empty();
			for(var i=0;i<data.paginationKGradeDTO.list.length;i++){
				   var state="开课";
				   (data.paginationKGradeDTO.list[i].gState==1)?state="开课":state="未审核";
		          $("#Gtbody").append('<tr><td>'+data.paginationKGradeDTO.list[i].gName+'</td><td><a href="#">'+data.paginationKGradeDTO.list[i].cName+'</a></td>'
		        		 +'<td>'+data.paginationKGradeDTO.list[i].begintTime+'--'+data.paginationKGradeDTO.list[i].endTime+'</td>'
		        		 +'<td>'+data.paginationKGradeDTO.list[i].gNumber+'</td><td>'+data.paginationKGradeDTO.list[i].tUsername+'</td>'
		        		 +'<td>'+state+'</td><td>  <div class="hidden-sm hidden-xs action-buttons">'
                         +  '<a class="green" href="#"> <a href="#modal-table" role="button" class="green" data-toggle="modal">'
                         +  '<i class="ace-icon fa fa-pencil bigger-130"></i></a> </a>  <a class="red" href="#">'
                         + '<a href="javascript:void(0);" onclick="del()"><i class="ace-icon fa fa-trash-o bigger-130"></i></a> </a>'
                         +'<a class="red" href="#"><i class="ace-icon fa fa-check-square-o bigger-130"></i> </a> </div>  </td></tr>');
		      }
		}
	});